from http.server import BaseHTTPRequestHandler
from api.parse import *
class handler(BaseHTTPRequestHandler):
	def do_GET(self):
		self.send_response(200)
		self.send_header('Content-type', 'text/plain')
		self.end_headers()
		self.wfile.write(str(parse_get(self)).encode())
		return
	def do_POST(self):
		self.send_response(200)
		self.send_header('Content-type', 'text/plain')
		self.end_headers()
		self.wfile.write(str(parse_post(self)).encode())
		return
